/*
* @Author: wanghongfucoder
* @Date:   2017-03-09 10:34:24
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-03-09 10:37:45
*/

public class OrExpression implements Expression {
	
	private Expression expr1=null;
	private Expression expr2=null;

	public  OrExpression(Expression expr1,Expression expr2){
		this.expr1=expr1;
		this.expr2=expr2;
	}

	public  boolean interpret(String context){
		return expr1.interpret(context) || expr2.interpret(context);
	}
}